//
//  VehiclePlanCell.m
//  Runone
//
//  Created by runone02 on 16/10/27.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "VehiclePlanCell.h"
#import "IntVclUserInfoModel.h"

@interface  VehiclePlanCell ()

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *orginLabelH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *destinationLabelH;


@end

#pragma --------车辆录入cell

@implementation VehiclePlanCell


- (void)awakeFromNib {
    [super awakeFromNib];
    _containerView.layer.cornerRadius  = 5;
    _containerView.layer.masksToBounds = YES;

    self.selectionStyle = UITableViewCellSelectionStyleNone;
    [self newLaytout];
    
}

- (void) newLaytout {
    

}

- (void)setIntRecordModel:(IntVclDrivedRecordInfo *)intRecordModel {
    _intRecordModel = intRecordModel;
    
    _VehicleNOL.text         = [NSString stringWithFormat:@"车牌号:%@",_intRecordModel.VehicleNo];
    IntVclUserInfoModel *model = [_intRecordModel.IntVclUserInfoList lastObject];
    if (model.VclUserName) {
        _UserNameL.text          = [NSString stringWithFormat:@"用车人:%@",model.VclUserName];
    }
    else
    {
        _UserNameL.text          =@"用车人:%@";
    }
    _DriverL.text            = [NSString stringWithFormat:@"司机 :%@",_intRecordModel.Driver];
    _OriginL.text            = [NSString stringWithFormat:@"出发地:%@",_intRecordModel.Origin];
    _DestinationL.text       = [NSString stringWithFormat:@"目的地:%@",_intRecordModel.Destination];
    _PlanDepartureTimeL.text = [NSString stringWithFormat:@"出发时间:%@",_intRecordModel.PlanDepartureTime];
    
}

@end
